package com.xy.manage.service.impl;


import java.util.List;
import java.util.Map;
import java.util.Date;
import com.xy.core.util.BeanUtil;
import com.xy.common.page.Pagination;
import com.xy.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.xy.manage.dao.TrequestDao;
import com.xy.manage.model.Trequest;
import com.xy.manage.service.TrequestService;

@Service
@Transactional
public class TrequestServiceImpl extends BaseServiceImpl<Trequest> implements
		TrequestService {
	private TrequestDao trequestDao;

	public TrequestServiceImpl(TrequestDao paramAppRoleDao) {
		super(paramAppRoleDao);
		this.trequestDao = paramAppRoleDao;
	}

	@Override
	public boolean checkExist(String paraName, String paraValue) {
		return trequestDao.checkExist("Trequest", paraName, paraValue);
	}

	@Override
	public List<Trequest> getTrequest(Map<String, Object> map) {
		return trequestDao.getTrequest(map);
	}
	@Override
	public Pagination getTrequestByPage(Map<String, Object> map, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		return trequestDao.getTrequestByPage(map, pageNo, pageSize);
	}
	 
   @Override
	public Trequest save(Trequest trequest) {
	//	trequest.setModtime(new Date());
		 
        	return super.save(trequest);
		 
	}
}